#define _CRT_SECURE_NO_WARNINGS

#include "Heap.h"

void Test()
{
	HPDataType a[] = { 100, 65, 70,32,50,60 };
	Heap hp;
	int len = sizeof(a) / sizeof(a[0]);

	HeapCreate(&hp, a, len);
	HeapPrint(&hp);

	//HeapPush(&hp, 1);
	//HeapPrint(&hp);

	//HeapPop(&hp);
	//HeapPrint(&hp);

	//while (!HeapEmpty(&hp))
	//{
	//	printf("%d ", HeapTop(&hp));
	//	HeapPop(&hp);
	//}
	//printf("\n");
	//HeapSort(a, len);

	//PrintTopK(a, len, 4);
	HeapDestory(&hp);
}
int main()
{
	//Test();
	TestTopk();
	return 0;
}